import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Nav from '../views/Nav.vue'
import City from '../views/City'
import Search from  '../views/Search'
import Beijing from '../views/Beijing'
Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    
    component: Home
  },
  {
    path: '/nav',
    
    component: Nav
  },
  {
    path:'/city',
    component:City
  },
  {
    path:'/Search',
    component:Search
  },
  {
    path:'/beijing',
    component:Beijing
  }
]

const router = new VueRouter({
  routes
})

export default router
